package com.yamaikeji.system.service.impl.plan;

import com.yamaikeji.system.domain.plan.PlanType;
import com.yamaikeji.system.mapper.plan.PlanTypeMapper;
import com.yamaikeji.system.service.plan.IPlanTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 计划类型Service业务层处理
 * 
 * @author yamaikeji
 * @date 2024-12-07
 */
@Service
public class PlanTypeServiceImpl implements IPlanTypeService {

    @Autowired
    private PlanTypeMapper planTypeMapper;

    /**
     * 查询计划类型列表
     * 
     * @param planType 计划类型
     * @return 计划类型
     */
    @Override
    public List<PlanType> selectPlanTypeList(PlanType planType) {
        return planTypeMapper.selectPlanTypeList(planType);
    }

    /**
     * 查询计划类型
     *
     * @param planType 计划类型
     * @return 计划类型
     */
    @Override
    public PlanType selectPlanType(PlanType planType) {
        return planTypeMapper.selectPlanType(planType);
    }

    /**
     * 新增计划类型
     * 
     * @param planType 计划类型
     * @return 结果
     */
    @Override
    public int insertPlanType(PlanType planType) {
        return planTypeMapper.insertPlanType(planType);
    }

    /**
     * 修改计划类型
     * 
     * @param planType 计划类型
     * @return 结果
     */
    @Override
    public int updatePlanType(PlanType planType) {
        return planTypeMapper.updatePlanType(planType);
    }

    /**
     * 删除计划类型
     *
     * @param planType 计划类型
     * @return 结果
     */
    @Override
    public int deletePlanType(PlanType planType) {
        return planTypeMapper.deletePlanType(planType);
    }
}
